package com.example.user;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableFeignClients
@Slf4j
@MapperScan("com.example.user.mapper")
public class AlibabaStockSeatalApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(AlibabaStockSeatalApplication.class, args);
        String port = applicationContext.getEnvironment().getProperty("server.port");
        log.info("启动成功，端口：{}", port);
    }

}
